<template>
	<view class="details-container">
		<view class="content">
			<view class="title">{{details.newsTitle}}</view>
			<view class="time">{{details.addTime}}</view>
			<view v-html="details.content">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				details: null
			}
		},
		onLoad(option) {
			let that = this;
			that.details = JSON.parse(decodeURIComponent(option.details))
			// console.log('新闻详情', JSON.parse(decodeURIComponent(option.details)))
		}
	}
</script>

<style scoped lang="scss">
	.details-container {
		padding: 40rpx 20rpx ;
		// background-color: red;
		.content{
			>view{
				margin-top: 20rpx;
			}
			display: flex;
			flex-direction: column;
			.title{
				font-size: 40rpx;
				font-weight: 600;
			}
			.time{
				font-size: 20rpx;
				text-align: right;
			}
		}
	}
</style>